package chapter3.No3_2_方法join的使用.demo7;

/**
 * *：3个线程争抢b锁，当main线程抢到运行时，join已经过时了的情况
 * Created by Administrator on 2016/11/20.
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        ThreadB b = new ThreadB();
        ThreadA a = new ThreadA(b);
        a.start();
        b.start();
        b.join(2000);
        System.out.println("main end" + System.currentTimeMillis());
    }
}
